﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace DataModels.Models
{
    public class OptionBPlusFacility
    {
        [Key]
        [Column(TypeName = "varchar")]
        public string FacilityCode { get; set; }

        public Nullable<int> UpdatedByUserId { get; set; }
        public Nullable<DateTime> UpdateDate { get; set; }
        
        public DateTime DateStarted { get; set; }
        public Nullable<DateTime> DateTrained { get; set; }
        public bool HasCTC { get; set; }
        public Nullable<DateTime> CTCStartDate { get; set; }

        [ForeignKey("FacilityCode")]
        public Facility Facility { get; set; }

        [ForeignKey("UpdatedByUserId")]
        public User UpdatedByUser { get; set; }
    }
}
